sum=0
for i in range(1,101):
    sum+=i
print("1-100相加的结果是",sum)

num=0
a=0
while a <101:
    num+=a
    a=a+1
print("1-100相加的结果是",num)